|
Command: |
Generate a 4-digit VISA PVV. |
|
Notes: |
VISA defines the PIN Verification Key Indicator (PVKI) to be between 0 and 6. The HSM does not enforce this restriction. |
|
Field |
Length & Type |
Details |
|
COMMAND MESSAGE |
||
|
Message header |
m A |
(Subsequently returned to the Host unchanged). |
|
Command code |
2 A |
Value DG. |
|
PVK pair |
32H or 1A+32H |
The two PVKs each encrypted under LMK pair 14-15. |
|
PIN |
L N or LH |
The PIN for which a PVV is required; encrypted under LMK pair 02-03. |
|
Account number |
12 N |
The 12 right-most digits of the account number, excluding the check digit. |
|
PVKI |
1 N |
The PVKI (should be between 0 and 6). |
|
End message delimiter |
1 C |
Optional. Must be present if a message trailer is present. Value X’19. |
|
Message trailer |
n A |
Optional. Maximum length 32 characters. |
|
RESPONSE MESSAGE |
||
|
Message header |
n A |
Returned to the Host unchanged. |
|
Response code |
2 A |
Value DH. |
|
Error code |
2 N |
00 : No errors 10 : PVK parity error 12 : No keys loaded in user storage 13 : LMK error; report to supervisor 15 : Error in input data 14 : Error in encrypted PIN 21 : Invalid user storage index 27 : PVK not double length |
|
PVV |
4 N |
The resulting PVV. |
|
End message delimiter |
1 C |
Present only if present in the command message. Value X’19. |
|
Message trailer |
n A |
Present only if present in the command message. Maximum length 32 characters. |